package com.vincent.template.domain;

import com.vincent.template.commons.base.BaseIncrEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * uri资源
 * @Author Vincent Wang
 * @Date 2020/10/21 12:50
 */
@Entity
@Table(name = "sys_uri",
        uniqueConstraints = {@UniqueConstraint(name = "pattern_mode_unique", columnNames = {"pattern","mode"})})
public class SysUriPo extends BaseIncrEntity {
    /**
     * 路径模式
     */
    @Column(nullable = false)
    private String pattern;
    /**
     * 请求方式
     * 为空代表允许所有请求方式
     */
    @Column(length = 10)
    private String mode;
    /**
     * 资源描述
     */
    @Column(length = 128)
    private String remark;

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
